@extends('default.layouts.adminPublic')
@section('title', '简历采集列表')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/admin/indexList.css')}}">
    @endsection
    @section('content')
            <!--导航开始-->
    <div class="crumb_warp">
        <i class="fa fa-home"></i> <a href="{{url('admin/resume_list')}}">首页</a> &raquo; 采集列表管理
    </div>
    <!--导航结束-->
    <!--结果集标题与导航组件 开始-->

    <div class="con">
        <div class="conMain">
            <div class="result_wrap">
                <div class="search">
                    <span style="margin-right: 20px;"><a href="{{url('admin/resume_add')}}"><i class="fa fa-plus"></i>添加简历采集</a></span>
                    <span style="margin-right: 20px;"><a href="{{url('admin/resume_list')}}"><i
                                    class="fa fa-recycle"></i>简历采集列表</a></span>
                    <span style="margin-left:20px;"><a style=" color:#ff4400" href="{{url('admin/resume_del')}}"><i class="fa fa-rotate-left"></i>去除已存在简历</a></span>
                </div>
                <div class="message"><p>
                        目前共查找到<strong>{{$collectionResume->total()}}</strong>份临时简历！且每页显示条数为{{$collectionResume->perPage()}}
                        条。</p></div>
            </div>
            <div class="manage">
                @include('flash::message')
            </div>
            <div class="conInfo">
                <form name="thisForm" id="thisForm" action="" method="post">
                    {{csrf_field()}}
                    <div class="conList" id="conList">
                        <dl class="one">
                            <dt><input name="selectall" type="checkbox" value="1" onclick="CheckAll(this)"/></dt>
                            <dd class="resume1">姓名</dd>
                            <dd class="resume2">性别</dd>
                            <dd class="resume3">手机号码</dd>
                            <dd class="resume4">寻求职位</dd>
                            <dd class="resume5">最高学历</dd>
                            <dd class="resume6">添加时间</dd>
                            <dd class="resume7">简历操作</dd>
                        </dl>
                        @if($collectionResume->count() > 0 )
                            @foreach($collectionResume as $v)
                                <dl id="list{{$v->id}}">
                                    <dt><input name="selected_id[]" type="checkbox" value="{{$v->id}}"/></dt>
                                    <dd class="resume1">{{$v->name}}</dd>
                                    <dd class="resume2">{{$v->sex}}</dd>
                                    <dd class="resume3">{{$v->mobile}}</dd>
                                    <dd class="resume4">{{str_limit($v->intentionjobs,32)}}</dd>
                                    <dd class="resume5">{{$v->education}}</dd>
                                    <dd class="resume6">{{$v->regtime}}</dd>
                                    <dd class="resume7">
                                        <span><a href="{{url('admin/resume_tmp_manage?resume_id='.$v->id.'&page='.$page)}}"
                                                 target="_blank">手动添加</a></span>
                                        {{--<span class="del"><a>直接添加</a></span>--}}
                                        <span><a href="{{url('admin/resume_jump/'.$v->id.'?page='.$page)}}">跳过该简历</a></span>
                                    </dd>
                                </dl>
                            @endforeach
                        @else
                            <div class="nullcon">对不起！没有符合条件的记录！</div>
                        @endif
                        <dl class="last">
                            <dt>
                                <input name="selectall" id="selectall" type="checkbox" value="1"
                                       onclick="CheckAll(this)"/>
                                <label for="selectall">全选</label>
                            </dt>
                            <dd class="p6"><a onclick="showconfirm('{{url('admin/del_tmp_resume')}}','1')">删除简历</a></dd>
                        </dl>
                    </div>
                </form>
                <div class="page_list" style="width: 100%; float: left; margin-top:15px;">
                    {!! $collectionResume->links() !!}
                </div>
            </div>

            <div class="stopper" style="margin-top:10px; border-top: 1px solid #e5e5e5"></div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@endsection

@section('footerjs')
    @parent
    <script>
        @if(!empty(session('error')))
            layer.ready(function(){
            layer.msg("{{session('error')}}", {time: 1500});
        });
        @endif
    </script>
    <script type="text/javascript" src="{{asset('/default/js/admin/resumeList.js')}}"></script>

@endsection